package com.myssm.mybatis.org.apache.ibatis.session;

import java.util.List;

//todo:缓存
public interface SqlSession {

    //为Mapper层的接口进行jdk代理生成实现类
    <T> T getMapper(Class<T> mapperClass);

    //查询所有数据
    <E> List<E> selectList(String statementId, Object... var2) throws Exception;

    //查询一个数据
    <T> T selectOne(String statementId, Object... var2) throws Exception;

    int insert(String statementId, Object... var2) throws Exception;

    int update(String statementId, Object... var2) throws Exception;

    int delete(String statementId, Object... var2) throws Exception;
}
